package com.satan.fmmall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.satan.fmmall.entity.ProductComments;
import com.satan.fmmall.vo.ResultVo;

import java.sql.SQLException;
import java.util.List;

public interface ProductCommentsService extends IService<ProductComments> {
    //评论分页查询
    public ResultVo listCommentsByProductId(String productId,int start,int limit);
    //根据商品id查询评论统计数据
    public ResultVo getCommentsCountByProductId(String productId);

    public void insertProductComments(List<ProductComments> productCommentsList,String orderId) throws SQLException;
}